package app.modules.security.persistence.mapper;

import app.modules.security.dto.web.resource.WebResourceDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jasmine.security.rbac.model.SecFunctionResourceRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mh.z
 */
public interface FunctionResourceRelationMapper extends BaseMapper<SecFunctionResourceRelation> {

    /**
     * 查询指定功能的所有已分配资源
     *
     * @param functionId
     * @return
     */
    List<WebResourceDTO> listAssignedResources(@Param("functionId") Long functionId);
}
